<?php

namespace app\common\validate;

use think\Validate;

class Redeem extends Validate
{
    protected $rule = [
        'balance'  => 'require|float',
        'integral'  => 'require|float',
    ];
    protected $message  =   [
        'balance.require' => '所需余额不能为空',
        'balance.float' => '所需余额只能是数字',
        'integral.require' => '兑换积分不能为空',
        'integral.float' => '兑换积分只能是数字',
    ];
}
